package com.Lixiaoqian.PartyHistoryMuseum.base;

import android.app.Activity;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v7.app.AppCompatActivity;

import com.Lixiaoqian.PartyHistoryMuseum.utils.PermissionsChecker;
import com.Lixiaoqian.PartyHistoryMuseum.utils.StatusBarUtil;

import butterknife.ButterKnife;

/**
 * Created by huangzhibo on 2017/9/12/012.
 * mail:1043202454@qq.com
 */

public abstract class BaseActivity extends AppCompatActivity {
    public Activity mActivity=this;
    public PermissionsChecker permissionChecker;
    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(setLayout());
        StatusBarUtil.setTranslucent(this,50);
        ButterKnife.bind(this);
        initObject();
        initData();
    }
    protected abstract int setLayout();
    public  void initObject(){
        permissionChecker=new PermissionsChecker(mActivity);
    };
    protected abstract void initData();


}
